Skip to content

Conversation

@alexandear
Copy link
Contributor

@alexandear alexandear commented Mar 11, 2025

This PR removes outdated in Go 1.22 // +build comments by running the command:

go fix -fix buildtag ./...

Additionally, enables revive.redundant-build-tag to detect redundant build tags in the future. This rule introduced by the newest golangci-lint, so I need to update it's version as well.

From https://pkg.go.dev/cmd/go#hdr-Build_constraints:

Go versions 1.16 and earlier used a different syntax for build constraints, with a "// +build" prefix. The gofmt command will add an equivalent //go:build constraint when encountering the older syntax.

@alexandear alexandear force-pushed the chore-redundant-build-tags branch 3 times, most recently from b9c66fe to 4547b5b Compare March 11, 2025 11:11
@coveralls
Copy link

coveralls commented Mar 11, 2025

Coverage Status

coverage: 56.319%. remained the same
when pulling 34c2b4a on alexandear-org:chore-redundant-build-tags
into a3b7633 on golang-migrate:master.

Copy link
Member

@dhui dhui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexandear Thanks for the cleanup! Could you rebase your PR to fix the merge conflicts?

@alexandear alexandear force-pushed the chore-redundant-build-tags branch from 4547b5b to 34c2b4a Compare April 17, 2025 20:58
@alexandear alexandear requested a review from dhui April 17, 2025 20:58
Copy link
Member

@dhui dhui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexandear Thanks for the cleanup!

@dhui dhui merged commit 9023d66 into golang-migrate:master Apr 17, 2025
8 checks passed
@alexandear alexandear deleted the chore-redundant-build-tags branch April 18, 2025 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants